package com.bsj.power.common.def.entity.exp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yinhao
 * @version 1.0
 * @description 知识库
 * @date 2024/7/3
 */
@Data
@NoArgsConstructor
@TableName(value = "tab_learn")
public class Learn {

    /**
     * 主键ID
     */
    @TableId(value = "learn_id" ,type = IdType.AUTO)
    private Long learnId;
    /**
     * 类型 1:培训 2:资料
     */
    @TableField(value = "types")
    private Integer types;
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 内容
     */
    @TableField(value = "`describe`")
    private String describe;
    /**
     * 重要级别 1-10 默认10
     */
    @TableField(value = "`level`")
    private Integer level;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
}
